﻿using IoTGateway.Model;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace IoTGateway.ViewModel.BasicData.DriverVMs
{
    public partial class DriverTemplateVM : BaseTemplateVM
    {
        [Display(Name = "驱动名")]
        public ExcelPropety DriverName_Excel = ExcelPropety.CreateProperty<Driver>(x => x.DriverName);

        [Display(Name = "文件名")]
        public ExcelPropety FileName_Excel = ExcelPropety.CreateProperty<Driver>(x => x.FileName);

        [Display(Name = "程序集名")]
        public ExcelPropety AssembleName_Excel = ExcelPropety.CreateProperty<Driver>(x => x.AssembleName);

        [Display(Name = "剩余授权数量")]
        public ExcelPropety AuthorizesNum_Excel = ExcelPropety.CreateProperty<Driver>(x => x.AuthorizesNum);

        protected override void InitVM()
        {
        }
    }

    public class DriverImportVM : BaseImportVM<DriverTemplateVM, Driver>
    {
    }
}